// 一· 字符串模板
let a = 4;
let b = "zhangsan";
let content = a + " 年" + b + " xxx";
let main = `我是${a},今年${b}岁`
//  二.startwith includes
let p = ["zhangsan","lisi","zhaoliu"]
for (let i = 0; i < p.length; i++) {
    if(p[i].startsWith("zh")){

        console.log(`恭喜${p[i]}同学中奖了`)
    }
}
// 三. split
let total = "zhangsan lisi wangwu zhaoliu"
let result = total.split(" ");
let finalresult = result.join(",")
// 四. 对象 object 转字符串 JSON
let obj = {
    name: "zhangsan",
    age: 20,
    sex: "male"
}
let str = JSON.stringify(obj);
let ss = '{"name":"zhang","age":12}';
let obj2 = JSON.parse(ss);

